//
// Created by T758 on 2021/11/28.
//
#include <stdio.h>

int main()
{
  int i, t1, t2, n, nextTerm;
  i = 0;
  t1 = 0;
  t2 = 1;
  n = 10;
  printf("斐波那契数列 in %d: ", n);

  while (i <= n) {
    printf("%d, ", t1);
    nextTerm = t1 + t2;
    t1 = t2;
    t2 = nextTerm;
    ++i;
  }
  printf("<< end; \n");
  return 0;
}
